package com.medical.guide.mapper;

import java.util.List;
import com.medical.domain.Disease;
import org.apache.ibatis.annotations.Mapper;

/**
 * 常见病Mapper接口
 * 
 * @author medical
 * @date 2024-07-19
 */
public interface DiseaseMapper 
{
    /**
     * 查询常见病
     * 
     * @param diseaseId 常见病主键
     * @return 常见病
     */
    public Disease selectDiseaseByDiseaseId(Long diseaseId);

    /**
     * 查询常见病列表
     * 
     * @param disease 常见病
     * @return 常见病集合
     */
    public List<Disease> selectDiseaseList(Disease disease);

    /**
     * 新增常见病
     * 
     * @param disease 常见病
     * @return 结果
     */
    public int insertDisease(Disease disease);

    /**
     * 修改常见病
     * 
     * @param disease 常见病
     * @return 结果
     */
    public int updateDisease(Disease disease);

    /**
     * 删除常见病
     * 
     * @param diseaseId 常见病主键
     * @return 结果
     */
    public int deleteDiseaseByDiseaseId(Long diseaseId);

    /**
     * 批量删除常见病
     * 
     * @param diseaseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDiseaseByDiseaseIds(Long[] diseaseIds);

    /**
     * 根据位置查询病症
     */
    public List<Disease> selectPositionIdList(Long positionId);


}
